#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
import threading
import time


def myprint(obj):
    sys.stdout.write(str(obj) + '\n')


def clock(interval):
    while True:
        myprint('the time is %s' % time.ctime())
        time.sleep(interval)


t = threading.Thread(target=clock, args=(1, ))
t.daemon = True
t.start()
